package com.minimalist;

// import org.apache.rocketmq.spring.autoconfigure.RocketMQAutoConfiguration;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
// import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.ImportResource;

/**
 * @author 11987
 */
@SpringBootApplication(scanBasePackages = {"com.minimalist.basic"
        , "com.minimalist.common"})
@ComponentScan(basePackages = {"com.minimalist.basic", "com.minimalist.common"})
@ImportResource("classpath:applicationContext.xml")
// @Import(RocketMQAutoConfiguration.class)
@EnableFeignClients(basePackages = {"com.minimalist.common.feign.client.lindi"
        , "com.minimalist.common.feign.client.tc"}
        , defaultConfiguration = com.minimalist.common.feign.config.FeignConfig.class)
public class MinimalistBasicApplication{

    public static void main(String[] args){
        SpringApplication application = new SpringApplication(
                MinimalistBasicApplication.class);
        application.setBannerMode(Banner.Mode.OFF);
        application.run(args);
    }

}
